<form autocomplete="off" id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">登录手机号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required(from, .account, 1);mobile;remote({:url('xilujob/member/exist',['type'=>'company'])})" data-msg-required="手机号、邮箱，必填一项" class="form-control account" name="user[mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">登录邮箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" data-rule="required(from, .account, 1);email;remote({:url('xilujob/member/exist',['type'=>'company'])})" data-msg-required="手机号、邮箱，必填一项" class="form-control account" name="user[email]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">用户名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" onautocomplete="{php}echo rand(){/php}" data-rule="required(#c-email:filled);remote({:url('xilujob/member/exist',['type'=>'company'])})" data-msg-required="请填写用户名" class="form-control account" name="user[username]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">密码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" onautocomplete="{php}echo rand(){/php}" data-rule="required;length(3~20)" class="form-control" name="user[password]" placeholder="" type="password" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">用户昵称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="length(0~20)" class="form-control" name="user[nickname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">用户头像:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="user[avatar]" type="hidden" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-full_name" data-rule="" class="form-control" name="row[full_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所属行业:</label>
        <div class="col-xs-12 col-sm-8">
            <select title="请选择"  id="c-category_id" data-rule="" class="form-control selectpicker" name="row[industry_category_id]" >
                {foreach name="industry_categories" item="vo"}
                <option value="{$key|htmlentities}" >{$vo|htmlentities}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">联系人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_person" data-rule="" class="form-control" name="row[contact_person]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">联系电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_phone" data-rule="" class="form-control" name="row[contact_phone]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">联系邮箱:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contact_email" data-rule="email;" class="form-control" name="row[contact_email]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司所在地址:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="form-inline" data-toggle="cxselect" data-selects="province,city">
                <select class="province form-control" data-value="" data-rule="required"
                        data-target="#location-error" data-query-name="pid" data-url="xilujob/job/area">
                </select>
                <select class="city form-control" data-value="" data-rule="required" data-target="#location-error" name="row[city_id]" data-query-name="pid" data-url="xilujob/job/area">
                </select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="" class="form-control" name="row[address]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业Logo:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" readonly data-rule="" class="form-control" size="50" name="row[logo]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-logo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司规模:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-scale_id" data-rule="" class="form-control selectpicker" title="请选择" name="row[company_scale_id]">
                {foreach name="scales" item="vo" }
                <option value="{$key|htmlentities}" >{$vo|htmlentities}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业性质:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-company_type_id" data-rule="" class="form-control selectpicker" title="请选择" name="row[company_type_id]">
                {foreach name="company_types" item="vo"}
                <option value="{$key|htmlentities}" >{$vo|htmlentities}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">展示标签:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-benefit_ids" data-source="xilujob/benefit/index" data-multiple="true" class="form-control selectpage" name="row[benefit_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-intro" class="form-control" name="row[intro]" maxlength="500" rows="10"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司环境:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-environment_images" readonly data-rule="" class="form-control" size="50" name="row[environment_images]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-environment_images" class="btn btn-danger plupload" data-input-id="c-environment_images" data-mimetype="image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-environment_images"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-environment_images" class="btn btn-primary fachoose" data-input-id="c-environment_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-environment_images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-environment_images"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">营业执照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-license_img" readonly data-rule="" class="form-control" size="50" name="row[license_img]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-license_img" class="btn btn-danger plupload" data-input-id="c-license_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-license_img"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-license_img" class="btn btn-primary fachoose" data-input-id="c-license_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-license_img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-license_img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业全称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_name" data-rule="" class="form-control" name="row[company_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">注册号码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-license_no" data-rule="" class="form-control" name="row[license_no]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('有效日期')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::datepicker('row[valid_date]', '', ['data-rule'=>''])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">个人实名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-personal_realname" data-rule="" class="form-control" name="row[personal_realname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">个人实名身份证号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-personal_identity_no" data-rule="" class="form-control" name="row[personal_identity_no]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">置顶:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-top" data-rule="" class="form-control" name="model[top]" placeholder="置顶排序，越大越靠前，不置顶留空" type="text" value="">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>